Open
Conversation
|
lbeltrame
requested changes
Feb 27, 2026
| cat("Reading:", input_file, "\n") | ||
| df <- read_tsv(input_file, show_col_types = FALSE) | ||
|
|
||
| colnames(df) <- c("Sample", "Chromosome", "Start", "End", "Num_Probes", "Segment_Mean") |
Contributor
There was a problem hiding this comment.
Can you pass the column names directly to read_tsv?
| genomeSize_fga = args$genomeSize_fga | ||
| ) | ||
|
|
||
| metrics$tai[is.na(metrics$tai)] <- 0 |
Contributor
There was a problem hiding this comment.
What is this? A data.frame? This is really nit-picking, but if it is so, let's use either tidyverse syntax or the other, not both.
| } | ||
|
|
||
| // Run CINmetrics if specified | ||
| if (params.compute_cinmetrics) { |
Contributor
There was a problem hiding this comment.
You use ext.when, so this check is unnecessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR integrates the R package CINmetrics in samurai. This addition enables the automated calculation of various Chromosomal Instability (CIN) metrics, providing standardized genomic instability scores directly within the workflow.
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).